import React,{Component } from 'react'
//导入路由
import {BrowserRouter as Router,Route,Switch} from 'react-router-dom'
//导入页面
import Login from './pages/Login'
import Layout from './pages/Layout'

import AuthRoute from './components/AuthRoute'
//配置路由规则
export default class App extends Component{
  render(){
    return (
    <Router>
    
        <Switch>
        <Route path='/login' component={Login}></Route>
        
        <AuthRoute path='/' component={Layout}></AuthRoute>
        </Switch>
    </Router>
  )
  }
  
}
